package com.cgy.utils.netx.ftp;

import com.cgy.utils.netx.ftp.configure.IConfigureHandler;
import org.apache.camel.builder.RouteBuilder;

/**
 * @author CHTK
 */
public class FtpRouteBuilder extends RouteBuilder {

    private FtpRoute ftpRoute;
    private IConfigureHandler iConfigureHandler;

    public FtpRouteBuilder(FtpRoute ftpRoute, IConfigureHandler iConfigureHandler) {
        this.ftpRoute = ftpRoute;
        this.iConfigureHandler = iConfigureHandler;
    }

    //ftp://173.5.206.53:2121/MHE/?username=ftpAdmin&password=123456&binary=true&passiveMode=true&delete=true&delay=60000

    @Override
    public void configure() throws Exception {
        iConfigureHandler.configure(this, this.ftpRoute);
    }
}
